<template>
<div>
  <h2>Right组件</h2>
  <p> {{ uname }} </p>
</div>
</template>

<script>
import bus from '@/bus'
export default {
    data () {
         return {
            uname: ''
         }
    },
    created() {
        bus.$on('share', v => {
            this.uname = v
        })
    }
}
</script>

<style>

</style>